package cn.yunlang.zhangZhongFei.base.pay.wxpay.common;
/**
 * 微信公众号请求地址配置
 */
public class WechatH5GetMsgUrlConstants {

    /**
     * 用code获取openid请求地址
     */
    public static String GetOpenIdByCode = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    public static String GetUserDetailsByAccessTokenAndOpenid = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN";

    public static String GetAccessTokenByAppIdAndSecret = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential?appid=%s&secret=%s";

    public static String GetPhoneByAccessToken = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=%s";

    public static String GetJsapiTicketByAccessToken = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";


}
